package cn.tedu._10article.base.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.NonNull;
import org.springframework.validation.annotation.Validated;

@Data
public class UserArticleParam {
    @NotBlank(message = "标题不能为空白")
    @Schema(description = "文章标题", required = true)
    private String title;
    @Size(min = 10,max = 500,message = "内容长度必须在10-500之间")
    @Schema(description = "文章内容",required = true)
    private String content;
}
